<?php
function msback($code,$msg,$data=[]){
    $value=[
       'code'=>$code,
       'msg' =>$msg,
       'data'=>$data,
    ];
    return $value; 
}
/**
 * 快速返回请求结果
 */
function Apiback($value){
    header('content-type:application/json');
    echo json_encode($value);die;
}